package com.wteam.PoJo.DTO;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 帖子表
 * </p>
 *
 * @author author
 * @since 2024-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_postwork")
@ApiModel(value="Postwork对象", description="帖子表")
public class PostworkDTO implements Serializable {

    @ApiModelProperty(value = "标题")
    private String title;

    @NotEmpty(message = "正文不能为空")
    @ApiModelProperty(value = "正文",required = true)
    private String content;


    @ApiModelProperty(value = "图片")
    private String photo;

    @ApiModelProperty(value = "标签")
    private String tag;


}
